//
//  ViewController.swift
//  EmojiKeyboardTest
//
//  Created by dqw on 15/8/6.
//  Copyright © 2015年 itcast. All rights reserved.
//
//
//  ViewController.swift
//  测试-01-表情键盘
//
//  Created by teacher on 15/8/5.
//  Copyright © 2015年 itheima. All rights reserved.
//

//import UIKit
//
//class ViewController: UIViewController {
//    
//    // 键盘输入视图 - 默认键盘高度 216
//    private lazy var emoticonVC: DDEmoticonVC = DDEmoticonVC()
//    
//    @IBOutlet weak var textView: UITextView!
//    
//    override func viewDidLoad() {
//        super.viewDidLoad()
//        
//        // 设置自定义输入键盘
//        textView.inputView = emoticonVC.view
//    }
//}



import UIKit

class ViewController: UIViewController, UITextViewDelegate {

    private lazy var DDVC: DDEmoticonVC = DDEmoticonVC {[weak self] (emoticon) -> Void in
        
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        textView.inputView = DDVC.view
        var arr = [DDEmoticonPackage]()
        arr = DDEmoticonPackage.loadPackages()
        let a = arr[0].emoticons!
        
        print(a[0])
        
        let b = arr[2].emoticons!
        
        print(b[0])
        textView.alwaysBounceVertical = true
        

    }
    

    
    @IBAction func translateCompoundedTextIntoString(sender: AnyObject) {
        
        
        
            }

    @IBOutlet weak var textView: UITextView!

}

